package day20170424.ch01;

import java.io.Serializable;

public class Student implements Serializable{
	
	/**
	 * 全球唯一id
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 学生名字
	 */
	private String name;
	
	/**
	 * 学生年龄
	 */
	private Integer age;
	
	/**
	 * 重写set/get
	 * @return
	 */
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	
	/**
	 * 重写toString
	 */
	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + "]";
	}
	
}
